from lxml import html
etree = html.etree
# from lxml import etree
html = etree.parse('./test.html',etree.HTMLParser())
print(html)
print("****************")
result = etree.tostring(html)
print(result)
print("****************")
print(result.decode('utf-8'))